<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet
				xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
				version="1.0">

<xsl:output method="xml"
            omit-xml-declaration="yes"
            encoding="utf-8"/>

<xsl:template match='/sol'>
	<div id='sol'>
		<xsl:apply-templates />
	</div>
</xsl:template>

<xsl:template match='node'>
	<div class='container {@kind}' id='{@id}'>
		<xsl:apply-templates select='label' />
		<xsl:apply-templates select='value' />
		<xsl:apply-templates select='node' />
		<!--<div class='controls'><span class='delete' id='delete-{@id}'>DEL</span></div>-->
	</div>
</xsl:template>

<xsl:template match='label | value'>
	<div class='{name()}'>
		<input class='textinput' type='text' name='{@id}' value='{.}' />
	</div>
</xsl:template>

</xsl:stylesheet>